<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>借钱时最蠢的不是问"借多少"，而是说这3句话，你中招了吗？</title>
    <script src="../js/html2canvas.min.js"></script>
</head>
<body style="font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif; line-height: 1.8; color: #000; background: #fff; padding: 15px; max-width: 580px; margin: 0 auto; font-size: 16px;">
    <div style="position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 1000;">
        <button id="increaseFont" title="放大文字" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">A+</button>
        <button id="decreaseFont" title="缩小文字" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">A-</button>
        <button id="exportImage" title="导出长图" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">📷</button>
    </div>
    
    <div id="articleContent" style="background: white; border-radius: 12px; padding: 30px 20px 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-top: 15px;">
        <h1 style="font-size: 24px; font-weight: bold; color: #1a1a1a; line-height: 1.5; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #ff4d6d;">借钱时最蠢的不是问"借多少"，而是说这3句话，你中招了吗？</h1>
        
        <div style="background: linear-gradient(135deg, #fff0f3 0%, #ffe5ea 100%); border-radius: 10px; padding: 15px 18px; margin: 25px 0; display: flex; align-items: center; font-size: 15px; box-shadow: 0 3px 12px rgba(255,77,109,0.1); border-left: 4px solid #ff4d6d; transition: all 0.3s ease;">
            <div>
                <p style="margin: 0; line-height: 1.6; color: #d0021b; font-weight: 500;">
                    点击右上角
                    <span style="color: #ff4d6d; font-weight: bold; margin: 0 4px;">
                        <img src="" style="height:20px;"/>
                    </span>
                    <span style="display: block; margin-top: 5px;">把这篇文章转发给最近需要的朋友，比借钱给他更有用</span>
                </p>
            </div>
        </div>

         <h3 style="color: #666; font-size: 15px; margin-bottom: 25px; font-weight: normal; display: flex; align-items: center;">
            <span style="margin-right: 8px;">⚠️</span>
            借出去的是钱，收回来的可能是仇人！
        </h3>
        
        <div>
            <p style="margin-bottom: 22px; text-align: justify; font-size: 17px; color: #1a1a1a; font-weight: 500;">上周参加同学聚会，老李喝多了拍着桌子骂："张涛这孙子，当年我借他5万救急，现在我儿子结婚要首付，他居然说'不就几万块吗，至于催这么紧？'"</p>
            
            <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">全场沉默。谁没遇到过这种事？你掏心掏肺借钱，对方觉得理所当然；你小心翼翼要钱，反倒成了"小气鬼"。</p>
            
            <div style="background: #fff5f5; border-left: 5px solid #ff4d6d; padding: 18px; margin: 25px 0; border-radius: 0 8px 8px 0;">
                <p style="font-size: 17px; color: #d0021b; font-weight: bold; margin-bottom: 0;">真正毁掉关系的，从不是"借不借"，而是你借钱时说的话——有些话看似好心，实则在给对方挖坑，也给自己埋雷。</p>
            </div>
            
            <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">我见过太多人因为这3句"客套话"反目成仇，今天索性说透，不想你也掉坑里。</p>
            
            <!-- 观点一：反常识 -->
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 19px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span style="display: inline-block; width: 28px; height: 28px; background: #ff4d6d; color: white; border-radius: 50%; text-align: center; line-height: 28px; margin-right: 10px; font-size: 16px;">1</span>
                    最傻的不是拒绝，是说"别着急还"
                </h2>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">王姐去年借了3万给妹妹买房，当时觉得姐妹情深，顺口说了句"不急，你啥时候有啥时候还"。</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">结果今年王姐自己生意周转不开，想让妹妹先还1万，妹妹却委屈了："你当初不是说不急吗？现在催我，是不是怕我不还？"</p>
                
                <div style="background: #f0f7ff; border-radius: 8px; padding: 18px; margin: 20px 0; position: relative;">
                    <div style="content: '真实案例'; position: absolute; top: -10px; left: 20px; background: #4080ff; color: white; font-size: 12px; padding: 2px 10px; border-radius: 20px;"></div>
                    <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">我表哥更绝，借了8万给发小创业，说"钱你先用着，啥时候发财了再说"。三年后发小公司上市，表哥提了句还钱，发小直接翻脸："我还以为你早不想要了，这点钱也惦记，太不够意思了！"</p>
                </div>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">你以为"别着急还"是大方，对方却可能理解成"这笔钱不重要"——重要的东西才会被惦记，不重要的，自然可以被无限拖延。</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;"><strong>正确做法：</strong>再亲也要说"我这钱计划X月要用，到时候得麻烦你先还我"。明确的时间不是催债，是给双方留体面。</p>
            </div>
            
            <!-- 观点二：反常识 -->
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 19px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span style="display: inline-block; width: 28px; height: 28px; background: #ff4d6d; color: white; border-radius: 50%; text-align: center; line-height: 28px; margin-right: 10px; font-size: 16px;">2</span>
                    别说"不够再跟我说"，这是在逼对方得寸进尺
                </h2>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">同事小张就吃过这亏。表弟借5千交房租，他心软加了句"不够再跟我说"，结果表弟当天又要借3千买电脑，不借就说"你不是说不够再要吗？是不是嫌我穷？"</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">人性就是这样：你退一步，对方可能进一步。你以为的"热心"，在对方眼里可能是"你有钱，多借点应该的"。</p>
                
                <div style="background: #f0f7ff; border-radius: 8px; padding: 18px; margin: 20px 0; position: relative;">
                    <div style="content: '真实案例'; position: absolute; top: -10px; left: 20px; background: #4080ff; color: white; font-size: 12px; padding: 2px 10px; border-radius: 20px;"></div>
                    <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">我邻居阿姨借给侄女2万买车，说了句"不够再讲"。侄女转头就买了辆超出预算的车，又来要3万，阿姨不借，侄女就在家族群里哭："阿姨看不起我们家，有钱也不帮..."</p>
                </div>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;"><strong>正确做法：</strong>问清用途后直接说"我最多能帮你X千，多了实在周转不开"。明确底线才是保护关系的前提。</p>
            </div>
            
            <!-- 观点三：反常识 -->
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 19px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span style="display: inline-block; width: 28px; height: 28px; background: #ff4d6d; color: white; border-radius: 50%; text-align: center; line-height: 28px; margin-right: 10px; font-size: 16px;">3</span>
                    千万别说"不用打欠条"，这是在考验人性
                </h2>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">老家有句俗语："亲兄弟，明算账"。可总有人觉得"打欠条伤感情"，结果呢？</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">我爸的朋友老郑，借10万给战友开饭店，碍于面子没要欠条。后来战友跑路，老郑去要钱，对方老婆说："谁能证明你借了？空口白牙就想讹钱？"</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">你以为"不用欠条"是信任，对方却可能觉得"没证据，不还也没事"。人性经不住考验，欠条不是防君子，是防小人，更是给关系留后路。</p>
                
                <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;"><strong>正确做法：</strong>笑着说"亲兄弟明算账，打个条咱们都放心，省得以后忘了数"。对方真心想还，根本不怕打欠条。</p>
            </div>
            
            <div style="font-size: 18px; color: #ff4d6d; text-align: center; margin: 30px 0; padding: 0 10px; position: relative;">
                <span style="content: '❝'; font-size: 30px; opacity: 0.3; position: absolute; top: -10px; left: 5px;"></span>
                好的关系，从来不怕谈钱。真正伤感情的，是你模糊了边界，又怪对方不懂分寸。
                <span style="content: '❞'; font-size: 30px; opacity: 0.3; position: absolute; bottom: -20px; right: 5px;"></span>
            </div>
            
            <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">最后想说句实在话：借钱不是义务，帮是情分，不帮是本分。</p>
            
            <p style="margin-bottom: 22px; text-align: justify; font-size: 16px;">如果有人因为你不愿借钱、按规矩借钱就翻脸，那这种人，早断早清净——毕竟，你的钱也不是大风刮来的，凭什么要为别人的贪婪和无礼买单？</p>
            
            <div style="background: #fff8e6; padding: 20px; border-radius: 10px; margin: 30px 0;">
                <p style="margin-bottom: 15px; color: #e67700; font-weight: 500;">你有没有借出去钱收不回来的经历？评论区聊聊，让更多人避坑</p>
            </div>
            
            <div style="background: #fff0f3; border-radius: 8px; padding: 12px 15px; margin: 20px 0; display: flex; align-items: center; font-size: 14px;">
                觉得有用？点击<span style="color: #ff4d6d; font-weight: bold; margin: 0 5px;">在看</span>，提醒身边人：谈钱不伤感情，不谈规矩才伤
            </div>
        </div>
    </div>
    
    <div id="imagePreview" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000;">
        <div style="background: white; padding: 20px; border-radius: 10px; max-width: 90%; position: relative;">
            <button id="closePreview" style="position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666;">×</button>
            <img id="previewImage" src="" alt="文章长图预览" style="max-width: 100%; max-height: 80vh;">
            <button id="downloadImage" style="background: #ff4d6d; color: white; border: none; padding: 12px 20px; border-radius: 6px; margin: 15px auto 0; display: block; cursor: pointer; font-size: 16px;">下载文章图片</button>
        </div>
    </div>

    <script>
        const elementsToScale = [
            { selector: 'body', baseSize: 16 },
            { selector: 'h1', baseSize: 24 },
            { selector: 'h2', baseSize: 19 },
            { selector: 'h3', baseSize: 15 },
            { selector: '.article-content p', baseSize: 16 },
            { selector: '#articleContent p', baseSize: 16 },
            { selector: '#articleContent div', baseSize: 15 },
            { selector: '#articleContent input', baseSize: 15 },
            { selector: '#articleContent button', baseSize: 16 }
        ];
        
        let scaleFactor = 1;
        const scaleStep = 0.1;
        const minScale = 0.75;
        const maxScale = 3;
        
        document.getElementById('increaseFont').addEventListener('click', function() {
            if (scaleFactor < maxScale) {
                scaleFactor += scaleStep;
                updateFontSizes();
            }
        });
        
        document.getElementById('decreaseFont').addEventListener('click', function() {
            if (scaleFactor > minScale) {
                scaleFactor -= scaleStep;
                updateFontSizes();
            }
        });
        
        function updateFontSizes() {
            elementsToScale.forEach(item => {
                const elements = document.querySelectorAll(item.selector);
                elements.forEach(element => {
                    const newSize = item.baseSize * scaleFactor;
                    element.style.fontSize = newSize + 'px';
                });
            });
        }
        
        document.getElementById('exportImage').addEventListener('click', function() {
            const articleContent = document.getElementById('articleContent');
            const originalText = this.innerHTML;
            this.innerHTML = '生成中...';
            this.disabled = true;
            
            html2canvas(articleContent, {
                scale: 2,
                useCORS: true,
                backgroundColor: '#ffffff'
            }).then(canvas => {
                this.innerHTML = originalText;
                this.disabled = false;
                document.getElementById('previewImage').src = canvas.toDataURL('image/png');
                document.getElementById('imagePreview').style.display = 'flex';
            }).catch(error => {
                console.error('生成失败:', error);
                alert('生成失败，请重试');
                this.innerHTML = originalText;
                this.disabled = false;
            });
        });
        
        document.getElementById('closePreview').addEventListener('click', function() {
            document.getElementById('imagePreview').style.display = 'none';
        });
        
        document.getElementById('downloadImage').addEventListener('click', function() {
            const link = document.createElement('a');
            link.download = '借钱避坑指南.png';
            link.href = document.getElementById('previewImage').src;
            link.click();
        });
    </script>
</body>
</html>
